﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x020002CC RID: 716
	public class TElseIfSqlNode : TParseTreeNode
	{
		// Token: 0x17000519 RID: 1305
		// (get) Token: 0x0600181E RID: 6174 RVA: 0x00328EF8 File Offset: 0x003270F8
		// (set) Token: 0x0600181F RID: 6175 RVA: 0x00328F00 File Offset: 0x00327100
		public virtual TExpression Condition
		{
			get
			{
				return this.condition;
			}
			set
			{
				this.condition = value;
			}
		}

		// Token: 0x1700051A RID: 1306
		// (get) Token: 0x06001820 RID: 6176 RVA: 0x00328F09 File Offset: 0x00327109
		// (set) Token: 0x06001821 RID: 6177 RVA: 0x00328F24 File Offset: 0x00327124
		public virtual TStatementList Stmts
		{
			get
			{
				if (this.stmts == null)
				{
					this.stmts = new TStatementList();
				}
				return this.stmts;
			}
			set
			{
				this.stmts = value;
			}
		}

		// Token: 0x06001822 RID: 6178 RVA: 0x00328F2D File Offset: 0x0032712D
		public override void init(object arg1, object arg2)
		{
			this.condition = (TExpression)arg1;
			this.stmtNodes = (TStatementListSqlNode)arg2;
		}

		// Token: 0x06001823 RID: 6179 RVA: 0x00328F48 File Offset: 0x00327148
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			this.condition.doParse(psql, plocation);
			this.stmtNodes.doParse(psql, plocation);
			for (int i = 0; i < this.stmtNodes.size(); i++)
			{
				this.Stmts.add(this.stmtNodes.getStatementSqlNode(i).Stmt);
			}
		}

		// Token: 0x1700051B RID: 1307
		// (set) Token: 0x06001824 RID: 6180 RVA: 0x00328FA1 File Offset: 0x003271A1
		public virtual TStatementListSqlNode StmtNodes
		{
			set
			{
				this.stmtNodes = value;
			}
		}

		// Token: 0x0400185A RID: 6234
		private TExpression condition;

		// Token: 0x0400185B RID: 6235
		private TStatementListSqlNode stmtNodes;

		// Token: 0x0400185C RID: 6236
		private TStatementList stmts;
	}
}
